<% @page_title = 'メンバー ＞ 編集' %>
<h1>Editing member</h1>

<%= error_messages_for :member %>

<% form_for(@member) do |f| %>
  <p>
    <b>Identifier</b><br />
    <%= f.text_field :identifier %>
  </p>

  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Department</b><br />
    <%= select_tag ('member_department_id',
            options_from_collection_for_select(@departments, 'id', 'name'),
           :name => 'member[department_id]') %>
  </p>

  <p>
    <%= f.submit "Update" %>
  </p>
<% end %>

<%= link_to 'Show', @member %> |
<%= link_to 'Back', members_path %>
